package hiho.ku._1082;

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		while (in.hasNextLine()) {
			String s = in.nextLine();
			String ls = s.toLowerCase();
			int pos = ls.indexOf("marshtomp");
			while (pos >= 0) {
				s = s.substring(0, pos) + "fjxmlhx" + s.substring(pos + 9);
				ls = ls.substring(0, pos) + "fjxmlhx" + ls.substring(pos + 9);
				pos = ls.indexOf("marshtomp");
			}
			System.out.println(s);
		}
	}

}
